<%= form_for(:session, url: equips_path, :html => {:multipart => true,:class=>'form-horizontal'}) do |t| %>
	<fieldset>
		<legend>
    <%= link_to '道具装备列表', equips_path %>
    </legend>
  <div class="control-group">
    <label class="control-label">装备名称</label>
    <div class="controls">
    <%= t.text_field :title, :placeholder => '装备名称' %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">使用等级</label>
    <div class="controls">
    <%= t.text_field :level, :placeholder => '使用等级' %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">装备属性</label>
    <div class="controls">
    <%= t.text_field :remark, :placeholder => '装备属性' %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">分类</label>
    <div class="controls">
      <%= select_tag "session[sort_id]", options_from_collection_for_select(@sort, 'id', 'title') %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">装备小图</label>
    <div class="controls">
      <%= t.file_field :iconimg %>
    </div>
  </div>
  <div class="control-group">
    <label class="control-label">属性图片</label>
    <div class="controls">
      <%= t.file_field :image %>
    </div>
  </div>
  <div class="control-group">
    <div class="controls">
      <button type="submit" class="btn">新增</button>
    </div>
  </div>
</fieldset>
<% end %>
